package file;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-10
 * Time: 21:20
 */
public class Demo6 {
    public static void main(String[] args) {
        File f=new File("./aaa/bbb/ccc");
        f.mkdirs();

        File f2=new File("./aaa");
        System.out.println(f2.list());
        //直接打印是[Ljava.lang.String;@1b6d3586——表示字符串的数组
        //正确打印方式：
        System.out.println(Arrays.toString(f2.list()));//打印[bbb]

        System.out.println(Arrays.toString(f2.listFiles()));//打印[.\aaa\bbb]

    }
}
